leetcode count items matching a rule

join shbcf.ru